package com.beyond.market.user.service.impl;


import com.beyond.market.user.dao.UserMapper;
import com.beyond.market.user.domain.User;
import com.beyond.market.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.sql.SQLException;

@Service
public class UserServiceImpl implements UserService {

    @Autowired(required = false)
    private UserMapper userMapper;

    @Override
    public User getByName(String name) throws SQLException {
        return userMapper.getByName(name);
    }

    @Override
    public String getPermsByUserName(Integer id) throws SQLException {
        return userMapper.getPermsByUserName(id);
    }
}
